/*初始化所有默认样式*/
ol, ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* start editing from here */
a {
    text-decoration: none;
}

.txt-rt {
    text-align: right;
}

/* text align right */
.txt-lt {
    text-align: left;
}

/* text align left */
.txt-center {
    text-align: center;
}

/* text align center */
.float-rt {
    float: right;
}

/* float right */
.float-lt {
    float: left;
}

/* float left */
.clear {
    clear: both;
}

/* clear float */
.pos-relative {
    position: relative;
}

/* Position Relative */
.pos-absolute {
    position: absolute;
}

/* Position Absolute */
.vertical-base {
    vertical-align: baseline;
}

/* vertical align baseline */
.vertical-top {
    vertical-align: top;
}

/* vertical align top */
.underline {
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    margin: 0 0 20px 0;
}

/* Add 5px bottom padding and a underline */
nav.vertical ul li {
    display: block;
}

/* vertical menu */
nav.horizontal ul li {
    display: inline-block;
}

/* horizontal menu */
img {
    max-width: 100%;
}

/*end reset*/
/*--1.设置整体背景图、以及全文默认字体大小--*/
body {
    background: url(../img/img.jpg) repeat;
    padding: 100px 0px 30px 0px;
    font-size: 13px;
}

/*--2.中间登录框的大小，根据屏幕比例自适应变化--*/
.bg {
    width: 40%;
    margin: 0 auto;
}

.bg h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0px 0px 50px 0px;
    font-family: 'Droid Serif', serif;
}

/*--3.登录框上半部分--*/
.login-top {
    background-color: #E1E1E1;
    border-radius: 25px 25px 0px 0px;
    padding: 40px 60px;
    opacity: 0.9;
}

.login-top h1 {
    text-align: center;
    font-size: 27px;
    font-weight: 500;
    color: #F45B4B;
    margin: 0px 0px 20px 0px;
}

/*3.2.账户输入框的样式自定义*/
.login-top input[type="text"] {
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: #818181;
    padding: 1px 20px;
    background: #CACACA;
    border: 1px solid #ccc;
    border-radius: 25px;
    margin: 0px 0px 12px 0px;
    width: 88%;
}

/*3.3.密码输入框的样式自定义*/
.login-top input[type="password"] {
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: #818181;
    padding: 1px 20px;
    background: #CACACA;
    border: 1px solid #ccc;
    border-radius: 25px;
    margin: 0px 0px 12px 0px;
    width: 88%;
}

/*3.4.忘记密码*/
.forgot a {
    font-size: 13px;
    font-weight: 500;
    color: #F45B4B;
    display: inline-block;
    border-right: 2px solid #F45B4B;
    padding: 0px 7px 0px 0px;
}

.forgot a:hover {
    color: #818181;
}

.forgot input[type="submit"] {
    background: #F45B4B;
    color: #FFF;
    font-size: 17px;
    font-weight: 400;
    padding: 8px 7px;
    width: 20%;
    display: inline-block;
    cursor: pointer;
    border-radius: 6px;
    margin: 0px 7px 0px 3px;
    outline: none;
    border: none;
}

.forgot input[type="submit"]:hover {
    background: #818181;
    transition: 0.5s all;
}

.login-bottom {
    background: #E15748;
    padding: 20px 65px;
    border-radius: 0px 0px 25px 25px;
    text-align: right;
    border-top: 2px solid #AD4337;
}

.login-bottom h3 {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.login-bottom h3 a {
    font-size: 25px;
    font-weight: 500;
    color: #fff;
}

.login-bottom h3 a:hover {
    color: #696969;
    transition: 0.5s all; /*颜色渐变效果*/
}

.copyright {
    padding: 150px 0px 0px 0px;
    text-align: center;
}

.copyright p {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
}

.copyright p a {
    font-size: 15px;
    font-weight: 400;
    color: #E15748;
}

.copyright p a:hover {
    color: #fff;
    transition: 0.5s all; /*颜色渐变效果*/
}

/*当屏幕宽度变化时，根据不同尺寸，修改中间登录框的大小（比例）*/
@media (max-width: 1024px) {
    .bg {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .bg {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .bg {
        width: 90%;
    }
}